git

Home > Software Notes > Tools

undoing last commit

Keep changes in staged area:

git reset --soft HEAD~1
Delete all changes:
git reset --hard HEAD~1

submodules

Use relative import paths for independence of ssh / https transport

[submodule "modules/mySubmodule"]
    path = modules/mySubmodule
    url = ../mySubmodule.git